package com.didi.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.didi.gulimall.common.utils.PageUtils;
import com.didi.gulimall.product.entity.CategoryEntity;
import com.didi.gulimall.product.vo.Catelog2Vo;
import com.didi.gulimall.product.vo.CatelogVo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author didi
 * @email 1062664904@qq.com
 * @date 2021-01-14 15:42:45
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取树状列表
     * @return
     */
    List<CategoryEntity> getListWithTree();

    /**
     * 查找分类全路径
     * @param catelogId
     * @return
     */
    List<Long> findCateLogPath(Long catelogId);

    /**
     * 修改分类及分类关联表名称
     * @param category
     */
    void updateCategory(CategoryEntity category);

    Map<String, List<CatelogVo>> majorizationGetCatalogJson();

    Map<String, List<Catelog2Vo>> getCatalogJson2();

    List<CategoryEntity> getLevelCategoryOne();
}

